package service.cfg;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/**
 * Created by asus on 2018/11/26.
 */
@Service
public class WxUserCfg {
    @Value("#{config['server.wxUser.url']}")
    private String path;

    protected String url="/info";

    public String getWxUserInfo() {
        return String.format("%s%s/id", path, url);
    }

    public String sendMsg() {
        return String.format("%s/sendTemplate/msg", path);
    }

}
